FPTHREAD = -pthread
FMATH = -lm
OBJS = obj/rand.o

main :
	$(info Usage: make ( bin/blackScholesPar | bin/blackScholesSeq ))

bin/blackScholesPar : src/blackScholesPar.c obj/rand.o
	$(CC) src/blackScholesPar.c $(OBJS) -o bin/blackScholesPar $(FPTHREAD) $(FMATH)

bin/blackScholesSeq : src/blackScholesSeq.c obj/rand.o
	$(CC) src/blackScholesSeq.c $(OBJS) -o bin/blackScholesSeq $(FMATH)

obj/rand.o : src/rand.c
	$(CC) -c src/rand.c -o obj/rand.o

clean :
	rm -r obj/*.o bin/*